package lab14Zoo;

public class ZooOne {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Zoo zoo = new Zoo();
		zoo.addAnimal(new Wolf());
		zoo.addAnimal(new Elephant());
		zoo.addAnimal(new Giraffe());
		for (int i = 0; i < zoo.getNumAnimals(); i++) {
			zoo.getAnimal(i).makeNoise();
		}
		
		System.out.println();
		zoo.removeAnimal(1);
		for (int i = 0; i < zoo.getNumAnimals(); i++) {
			zoo.getAnimal(i).makeNoise();
		}
		
		System.out.println();
		zoo.removeAnimal(12);
		
		System.out.println();
		for (int i = 0; i < 19; i ++) {
			zoo.addAnimal(new Elephant());
		}
		for (int i = 0; i < zoo.getNumAnimals(); i++) {
			zoo.getAnimal(i).makeNoise();
		}
			
	}

}
